home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 / Ham Radio 2000.iso / ham2000 / bbs / lzhuf / lzhufdll.txt < prev    next >
Text File  |  1996-05-09  |  3KB  |  90 lines

  1.                              LZHUF_1.DLL - v2.0
  2.                              ==================
  3.                                  (27-04-96)
  4.  
  5.                    LZHUF compression by Haruyasu Yoshizaki
  6.                         Adapted by Jean-Paul ROUBELAT
  7.             DLL'ed by Charlie McIver - Purple Computer Solutions
  8.                   
  9.               Unrestricted use -=- Source available on request
  10.  
  11. The LZHUF_1 DLL is simply a 16 bit Windows DLL implementation of the 
  12. LZHUF_1.EXE program, as modified by Jean-Paul Roubelat for use within his
  13. F6FBB server system. 
  14.  
  15. This DLL expects only message text to be stored in a file. So, when compressing
  16. the source file should only contain the message text. Similiarly when expanding
  17. you should dump all the data that FBB sends you in a file, and call the 
  18. decoding function. The output file contains only message text.
  19.  
  20. The format of a compressed file is :-
  21.  
  22. byte      description
  23. ======================================
  24. 0,1     - CRC16
  25. 2,3,4,5 - Length of uncompressed file
  26. 6 ->    - Rest of file
  27.  
  28. Here are the function definitions :-
  29.  
  30. int FAR PASCAL _export lz_decode(int mode, LPSTR infilename, LPSTR outfilename)
  31. int FAR PASCAL _export lz_encode(int mode, LPSTR infilename, LPSTR outfilename)
  32.  
  33. Visual Basic declarations :-
  34.  
  35. Declare Function lz_decode Lib "LZHUF_1.DLL" ( ByVal mode As Integer, ByVal infilename As String, ByVal outfilename As String) As Integer
  36. Declare Function lz_encode Lib "LZHUF_1.DLL" ( ByVal mode As Integer, ByVal infilename As String, ByVal outfilename As String) As Integer
  37.  
  38. lz_encode is the encoder (i.e. it compresses)
  39. lz_decode is the decoder (i.e. it re-expands)
  40.  
  41. mode        - Version one compression (utilises CRC16) (0 or 1)
  42. infilename  - Name of input file
  43. outfilename - Name of output
  44.  
  45. Both functions return an integer, a non zero means a problem was encountered.
  46.  
  47. Users should be aware that I have added nothing to the encoding/decoding
  48. so if you tell the DLL something wrong it can have an abstract outcome!
  49. If you ever played with the original version, and you tried to decompress a
  50. version 1 file with version 0 compression, it sat in a loop eating up harddisk
  51. space. This can still happen, you have been warned!
  52.  
  53. I have started a list of people developing software using this DLL. If you
  54. wish to be added to this then simply ask. This way I can tell people when I
  55. update it.
  56.  
  57. This was a very simple and basic conversion, additions are possible, just ask!
  58.  
  59. I don't think there are any bugs, but it isn't impossible!
  60.  
  61. Supplied in the zip are the original source and docs supplied to me by Jean
  62. Paul Roubelat (F6FBB) contained within another ZIP LZHUF_1.ZIP.
  63.  
  64. As of 09/04/96 the zip is distributed as LZHUFxx.ZIP where xx is a release
  65. number.
  66.  
  67. Purple Computer Solutions
  68. 31 Hartshill
  69. Bedford
  70. MK41 9AL
  71. UK
  72.  
  73. Tel : +44 (0)1234 328816
  74. Fax : +44 (0)1234 328817
  75.  
  76. Email: CharlieM@b-m-s.demon.co.uk
  77.        CharlieM@thresh.demon.co.uk
  78.  
  79. AX25 : G7MYO @ GB7BED.#21.GBR.EU
  80.  
  81. I would prefer if people contact me by post or by email / AX25. This is 
  82. cheaper and I can answer at my leisure!
  83.  
  84.  
  85. Revision History :-
  86.  
  87. Date      Rel  Comments
  88. ================================================================
  89. 02-02-96  1.0  First version done
  90. 27-04-96  2.0  New version, with static libraries not DLL's